package com.nwpu.server.authserver.vo;

import com.nwpu.server.common.valid.AddGroup;
import com.nwpu.server.common.valid.ListValue;
import com.nwpu.server.common.valid.LoginGroup;
import com.nwpu.server.common.valid.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * @Author: YuXingZh
 * @Date: Created in 19:27 2022-04-17
 * @Description: 登录表单
 */
@Data
public class LoginForm {

    @NotBlank(groups = {LoginGroup.class}, message = "用户名必须非空")
    private String username;

    @NotBlank(groups = {LoginGroup.class}, message = "密码必须非空")
    private String password;

    @NotBlank(groups = {LoginGroup.class}, message = "验证码必须非空")
    private String captcha;

    @NotBlank(groups = {LoginGroup.class}, message = "uuid必须非空")
    private String uuid;
}

